<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>login</title>
</head>
<body>
<form action="doLogin" method="post">
    用户名：<input type="text" name="name" value="admin"/><br/>
    密&nbsp;&nbsp;&nbsp;&nbsp;码：<input type="password" name="password" value="admin"/><br/>
    <input type="submit" value="登录"/><br/>
</form>
    <c:if test="${not empty requestScope.loginError}">
        <span style="color: red">用户名或密码错误</span>
    </c:if>

</body>
</html>
